package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ElseClause {

    private int beginIndex;
    private int endIndex;
    private Result result;

    public ElseClause(int beginIndex, Result result) {
        this.beginIndex = beginIndex;
        this.endIndex = result.getEndIndex();
        this.result = result;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Result getResult() {
        return result;
    }

    public boolean isNull() {
        return result.isNull();
    }

}
